function showFileOptDialog(flag){
    clearAll();
    $(".dialog-wrapper").css("display",flag?"flex":"none")
    $(".dialog-wrapper .dialog-file-opt").css("display",flag?"block":"none")
}
function showLoading(flag){
    clearAll();
    $(".dialog-wrapper").css("display",flag?"flex":"none")
    $(".dialog-wrapper .dialog-loading").css("display",flag?"block":"none")
}
function showMessageDialog(flag,message){
    clearAll();
    $(".dialog-wrapper").css("display",flag?"flex":"none")
    $(".dialog-wrapper .dialog-message").css("display",flag?"block":"none")
    $(".dialog-wrapper .dialog-message .message").html(message);
}

function clearAll(){
    restFileOptDialog();
    $(".dialog-wrapper .dialog").css("display","none");
}
/**
 * 重置文件对话框数据
 */
function restFileOptDialog(){
    $(".dialog-wrapper .dialog-file-opt .buttons .delete").attr("onclick","preDeleteFile()")
    $(".dialog-wrapper .dialog-file-opt .message").html("您想对文件进行怎么操作");
}
function  showEditDialog(flag) {
    clearAll();
    $(".dialog-wrapper").css("display",flag?"flex":"none")
    $(".dialog-wrapper .dialog-edit").css("display",flag?"block":"none")

}